Occurs in the source vault before publishing starts.
Syntax
PublisherSourceEvent_BeforePublish (destType, destAddress, _
destDocId, destDocPath, destDocName, publishOptions)
Parameter | Description |
---|---|
destType |
The name of the destination system link, for example, BC Meridian or Windows file system. |
destAddress |
The address of the destination system as shown on the Explorer Destination page, for example, DataStoreName@MachineName for the Meridian Enterprise system link. |
destDocId |
The ID of the document in the destination system. Contains an empty value if the document does not yet exist in the destination system. |
destDocPath |
The path of the document in the destination system. |
destDocName |
The name of the document in the destination system. |
publishOptions |
The publishing options to apply to the job. If the options were specified in the source system client application, they are passed in this parameter. For information about the publishing options supported by a specific system link, see the system link description in About the publishing modules. |
Return value
An array of variants. The first element in the array is treated as a new value for DestDocID parameter.
Example
Public Function PublisherSourceEvent_BeforePublish (destType, destAddress, _ destDocId, destDocPath, destDocName, publishOptions) Document.Log _ "Started publishing: " & _ "to " & destType & " '" & destAddress & "'" & _ " document with ID '" & destDocId & "'" & _ " with options '" & publishOptions & "'" & _ " and path '" & destDocPath & "' and name '" & destDocName & "'" End Function
Related concepts
Related information
The ExplorerSynchronization property set